Skip to content

Conversation

@RafaelKayumov
Copy link
Contributor

@RafaelKayumov RafaelKayumov commented Oct 14, 2025

Part of: WOOMOB-1508

Description

  • Adds loadBooking(bookingID:, siteID:) remote method for loading a single booking
  • Adds loadOrders(for siteID:, orderIDs:) remote method to load a set of orders with specified IDs.
  • Adds synchronizeBooking action that fetches both booking and the corresponding order.
  • Augments synchronizeBookings action to also download related orders using the loadOrders(for siteID:, orderIDs:).
  • Adds new tests and update existing.

Note: The new Booking related models containing product, customer and order info aren't yet applied. This will be handled in a separate PR depending on the Bookings: Add new entities for booking info.

Testing steps

  • Use CIAB site with existing bookings.
  • Use Proxyman
  • Navigate to the Booking list
  • In Proxyman make sure the orders are fetched (est_route=/wc/v3/orders) for each non-empty bookings response (rest_route=/wc-bookings/v2/bookings) containing actual bookings.
  • In Proxyman make sure the corresponding wc/v3/orders requests contain the include argument with non-repeating order ids. Make sure the corresponding orders returned in the response.
  • Make sure the returned orders are logged into the Xcode debug console by: print("The order for the booking \(readOnlyBooking.bookingID): \(associatedOrder)")

Testing information

Tested in iOS 26 (iPhone 17) Simulator.


  • I have considered if this change warrants user-facing release notes and have added them to RELEASE-NOTES.txt if necessary.

@RafaelKayumov RafaelKayumov added this to the 23.5 milestone Oct 14, 2025
@RafaelKayumov RafaelKayumov added the type: task An internally driven task. label Oct 14, 2025
@wpmobilebot
Copy link
Collaborator

App Icon📲 You can test the changes from this Pull Request in WooCommerce iOS Prototype by scanning the QR code below to install the corresponding build.

App NameWooCommerce iOS Prototype
Build Numberpr16243-103da58
Version23.4
Bundle IDcom.automattic.alpha.woocommerce
Commit103da58
Installation URL18uj1kkghho4g
Automatticians: You can use our internal self-serve MC tool to give yourself access to those builds if needed.

@itsmeichigo itsmeichigo self-assigned this Oct 15, 2025
Copy link
Contributor

@itsmeichigo itsmeichigo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM :shipit:

@RafaelKayumov RafaelKayumov merged commit 5ea1539 into trunk Oct 15, 2025
17 of 19 checks passed
@RafaelKayumov RafaelKayumov deleted the WOOMOB-1426-remote-requests-for-booking-entities branch October 15, 2025 08:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: task An internally driven task.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants